/*
 * @Author: scopesang
 * @Date: 2022-05-10 10:46:14
 * @LastEditors: scopesang
 * @LastEditTime: 2022-05-10 10:47:34
 * @FilePath: \TypeScript\src\complexDataType\void.ts
 * @Description: 无返回值void（掌握）
 * 
 * Copyright (c) 2022 by scopesang/大鹏科技, All Rights Reserved. 
 */

// 当一个函数没有返回值时，需要加上void：
function fn(one:number,two:number):void{
    console.log(one+two);
}
fn(1,2)